package com.aqiang.lib_core.mvp

import java.lang.ref.SoftReference

abstract class BasePresenter<M : IModel,V : IView>(v:V) {
    protected var mModel:M
    protected var mView:SoftReference<V>

    init {
        mModel = initModel()
        mView = SoftReference(v)
    }

    abstract fun initModel(): M
}